package com.zhangxi.service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhangxi.mapper.SysLoginLogMapper;
import com.zhangxi.service.SysLoginLogService;
import com.zhangxi.system.SysLoginLog;
import com.zhangxi.vo.SysLoginLogQueryVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * ClassName: SysLoginLogServiceImpl
 * Package: com.zhangxi.service.Impl
 */
@Service
@SuppressWarnings({"unchecked", "rawtypes"})
public class SysLoginLogServiceImpl extends ServiceImpl<SysLoginLogMapper, SysLoginLog> implements SysLoginLogService {

    @Resource
    private SysLoginLogMapper sysLoginLogMapper;

    @Override
    public IPage<SysLoginLog> selectPage(Page<SysLoginLog> pageParam, SysLoginLogQueryVo sysLoginLogQueryVo) {
        //先临时设置Null
        sysLoginLogQueryVo.setUsername(null);
        sysLoginLogQueryVo.setCreateTimeBegin(null);
        sysLoginLogQueryVo.setCreateTimeEnd(null);
        return sysLoginLogMapper.selectPage1(pageParam, sysLoginLogQueryVo);
    }
}
